using System;
using System.Collections.Generic;

using DevExpress.ExpressApp;
using Top.Module.Domain;
using DevExpress.Persistent.BaseImpl;

namespace Top.Module
{
    public sealed partial class TopModule : ModuleBase
    {
        public TopModule()
        {
            ModelDifferenceResourceName = "Top.Module.Model.DesignedDiffs";
            InitializeComponent();
        }

        public override void Setup(ApplicationModulesManager moduleManager)
        {
            if (!XafTypesInfo.IsInitialized)
            {
                XafTypesInfo.Instance.RegisterEntity("TopItem", typeof(IItem), typeof(BaseObject));
                XafTypesInfo.Instance.RegisterEntity("TopItemImg", typeof(IItemImg), typeof(BaseObject));
                XafTypesInfo.Instance.RegisterEntity("TopLocation", typeof(ILocation), typeof(BaseObject));
                XafTypesInfo.Instance.RegisterEntity("TopPropImg", typeof(IPropImg), typeof(BaseObject));
                XafTypesInfo.Instance.RegisterEntity("TopSku", typeof(ISku), typeof(BaseObject));
                XafTypesInfo.Instance.RegisterEntity("TopVideo", typeof(IVideo), typeof(BaseObject));
            }
            base.Setup(moduleManager);
        }
    }
}
